#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/9/3 16:45
# @Author : 吴敬超
# explain:
import csv
#
with open('C:/Users/wjc04/Desktop/12123/mrt.csv', mode='wb') as ice_file:
    columnsTitles = ['z_t', 'lat', 'lon', 'SALT']

    ice_writer = csv.writer(ice_file,dialect='excel')

    ice_writer.writerow(columnsTitles)

    # ice_writer.close()

ice_file.close()

# #csv 写入
# stu1 = ['marry',26]
# stu2 = ['bob',23]
# #打开文件，追加a
# out = open('C:/Users/wjc04/Desktop/12123/Stu_csv.csv','w')
# #设定写入模式
# csv_write = csv.writer(out,dialect='excel')
# #写入具体内容
# csv_write.writerow(stu1)
# csv_write.writerow(stu2)
# print ("write over")